package com.tlgen.modules.vocation.repository;

import com.tlgen.modules.vocation.domain.Home;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface HomeRepository extends JpaRepository<Home, Long>, JpaSpecificationExecutor<Home> {

    /**
     *根据名称查询
     * @param name
     * @return
     */
    Home findByName(String name);

    List<Home> findByPid(Long id);
}
